#ifndef __FUNCUTIL_H__
#define __FUNCUTIL_H__


namespace wb
{


char* snprintf(char* buf, size_t maxSize, const char* fmt, ...);
char* slprintf(char* buf, char* last, const char* fmt, ...);
char* vslprintf(char* buf, char* last, const char* fmt, va_list args);

void ltrim(char* cstr);
void rtrim(char* cstr);

int init_signals();
void master_cycle();
int daemon();
void process_events_and_timers();


} //end namespace wb

#endif // __FUNCUTIL_H__